﻿@model Pyramid.Models.ChangePasswordModel

<div class="pageContent">
	@using (Html.BeginForm("ChangePassword", "Home", FormMethod.Post, new {@class = "pageForm required-validate", onsubmit = "return validateCallback(this, navTabAjaxDone);"}))
	{
		<div class="pageFormContent" layouth="56">
			<p class="nowrap">
				@Html.LabelFor(model => model.OrignalPassword)
				@Html.TextBoxFor(model => model.OrignalPassword, new {@class = "required alphanumeric", minlength = "6", maxlength = "12"})
			</p>
			<p class="nowrap">
				@Html.LabelFor(model => model.NewPassword)
				@Html.TextBoxFor(model => model.NewPassword, new {@class = "required alphanumeric", minlength = "6", maxlength = "12"})
			</p>
			<p class="nowrap">
				@Html.LabelFor(model => model.ConfirmPassword)
				@Html.TextBoxFor(model => model.ConfirmPassword, new {@class = "required alphanumeric", equalto = "#NewPassword", minlength = "6", maxlength = "12"})
			</p>
		</div>
		<div class="formBar">
			<ul>
				<li>
					<div class="buttonActive">
						<div class="buttonContent">
							<button type="submit">保存</button>
						</div>
					</div>
				</li>
				<li>
					<div class="button">
						<div class="buttonContent">
							<button type="button" class="close">取消</button>
						</div>
					</div>
				</li>
			</ul>
		</div>
	}
</div>